<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title th:replace="${title}">Title</title>
    <link rel="stylesheet" href="../../static/lib/editormd/css/editormd.css" th:href="@{/lib/editormd/css/editormd.css}">
    <link rel="stylesheet" href="../../static/lib/editormd/css/editormd.min.css" th:href="@{/lib/editormd/css/editormd.min.css}">
    <link rel="stylesheet" href="../static/css/typo.css" th:href="@{/css/typo.css}">
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
    <link rel="stylesheet" href="../static/lib/tocbot/tocbot.css" th:href="@{/lib/tocbot/tocbot.css}">
    <link
            rel="stylesheet"
            href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
    />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css" >
</head>
<body>
<!--导航-->
<!--导航-->
<nav th:fragment="menu(n)" class="ui inverted attached  segment m-padded-tb-mini m-shadow-small" >
    <div class="ui container">
        <div class="ui stackable inverted secondary menu">
            <h2 class="ui teal header item">管理后台</h2>
            <a href="#" th:href="@{/admin/blogs}" class="m-item m-mobile-hide item" th:classappend="${n}==1 ? 'active':''"><i class="home icon"></i>博客</a>
            <a href="#" th:href="@{/admin/types}" class="m-item m-mobile-hide item" th:classappend="${n}==2 ? 'active':''"><i class="idea icon"></i>分类</a>
            <a href="#" th:href="@{/admin/tags}" class="m-item m-mobile-hide item" th:classappend="${n}==3 ? 'active':''"><i class="tags icon"></i>标签</a>
            <div class="right m-item m-mobile-hide menu">
                <div class="ui dropdown item">
                    <div class="text">
                        <img class="ui avatar image" src="../../static/images/yello.jpg" th:src="@{${session.user.avatar}}">
                        <span th:text="${session.user.nickName}">李仁密</span>
                    </div>
                    <i class="dropdown icon"></i>
                    <div class="menu">
                        <a href="#" th:href="@{/}" class="item">首页</a>
                        <a href="#" th:href="@{/admin/loginOut}" class="item">退出登录</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-top-right  m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>
<!--底部footer-->
<footer th:fragment="footer" class="ui center aligned inverted vertical segment  m-padded-tb-massive" >
<div class="ui  container">
    <div class="ui inverted divided stackable grid">

        <div class="three wide column">
            <div class="ui inverted link list">
                <div class="item">
                    <img src="../static/images/wechat.jpg" th:src="@{/images/wechat.jpg}" class="ui rounded image" style="width: 100px">
                </div>
            </div>
        </div>
        <div class="three wide column">
            <h4 class="ui inverted header m-text-spaced m-text-thin ">最新博客</h4>
            <div id="footAnewblog">
                <div class="ui inverted link list" th:fragment="newblogList">

                    <a href="#" target="_blank" class="item" th:each="blog : ${newBlogs}" th:text="${blog.title}" th:href="@{/blog/{id}(id=${blog.id})}">用户故事</a>

                </div>
            </div>
        </div>
        <div class="three wide column">
            <h4 class="ui inverted header m-text-spaced m-text-thin ">联系我</h4>
            <div class="ui inverted link list">
                <a href="#" class="item" th:text="#{footer.email}"></a>
                <a href="#" class="item" th:text="#{footer.qq}">QQ:123456789</a>
            </div>
        </div>
        <div class="seven wide column">
            <h4 class="ui inverted header m-text-spaced m-text-thin ">Blog</h4>
            <p class="m-opactity-mini m-text-spaced m-text-thin">这是我的个人博客，会分享关于编程，写作，思考的任何内容，希望能给来到这的人都有所帮助...</p>
        </div>
    </div>
</div>
<div>
    <div class="ui inverted section divider"></div>
    <p class="m-opactity-tiny m-text-thin m-text-spaced" th:text="#{footer.welcome}"><i class="angle double right icon"></i> Copyright@2016-2017Lirenmi Desigened by Lirenmi <i class="angle double right"></i></p>
</div>

</footer>

<th:block  th:fragment="script">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>

    <script src="../static/lib/qrcode/qrcode.js" th:src="@{/lib/qrcode/qrcode.js}"></script>
    <script src="../static/lib/tocbot/tocbot.js" th:src="@{/lib/tocbot/tocbot.js}"></script>
    <script src="../../static/lib/editormd/editormd.min.js" th:src="@{/lib/editormd/editormd.min.js}"></script>
    <script src="//cdn.jsdelivr.net/npm/jquery.scrollto@2.1.2/jquery.scrollTo.min.js"></script>
    <script src="../static/lib/waypoints/jquery.waypoints.min.js" th:src="@{/lib/waypoints/jquery.waypoints.min.js}"></script>
    <script>
        $('#footAnewblog').load(/*[[@{/footer/admin/newBlog}]]*/"/footer/admin/newBlog");
    </script>
</th:block>
</body>
</html>